﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.PricelistAddControl"
    CodeBehind="PricelistAdd.ascx.cs" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register TagPrefix="nopCommerce" TagName="DecimalTextBox" Src="DecimalTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="NumericTextBox" Src="NumericTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="SimpleTextBox" Src="SimpleTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ToolTipLabel" Src="ToolTipLabelControl.ascx" %>
<div class="section-header">
    <div class="title">
        <img src="Common/ico-promotions.png" alt="" />
        新增价格表 <a href="PriceList.aspx" title="回到价格表列表">(回到价格表列表)</a>
    </div>
    <div class="options">
        <asp:Button ID="SaveButton" runat="server" Text="保存" CssClass="adminButtonBlue" OnClick="SaveButton_Click"
            ToolTip="保存价格表" />
    </div>
</div>
<ajaxToolkit:TabContainer runat="server" ID="PricelistsTabs" ActiveTabIndex="0">
    <ajaxToolkit:TabPanel runat="server" ID="pnlPricelistInfo" HeaderText="价格表信息">
        <ContentTemplate>
            <table class="adminContent">
                <tr>
                    <td class="adminTitle">
                        &nbsp;
                    </td>
                    <td class="adminData">
                        <b>允许使用的信息变量：请注意，您还可以添加格式 条件(如%pv.price：0.00%)，所选的“格式->本地化”将决定使用 什么样的小数点 </b>
                        <br />
                        <asp:Label ID="lblAllowedTokens" runat="server" />
                        <br />
                        <br />
                        通过"http://www.yourStore.com/Pricelist.csv?PricelistGuid=abc" 能获得相应的价格表
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblDIsplayName" Text="显示名称:" ToolTip="价格表的显示名称."
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <nopCommerce:SimpleTextBox runat="server" ID="txtDisplayName" CssClass="adminInput"
                            ErrorMessage="Display name is required" />
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblShortName" Text="简称:" ToolTip="价格表的简称."
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:TextBox runat="server" ID="txtShortName" CssClass="adminInput" />
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblPricelistGUID" Text="价格表GUID:" ToolTip="该价格表的GUID."
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:TextBox runat="server" ID="txtPricelistGuid" CssClass="adminInput" />
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblHeader" Text="导出文件页眉:" ToolTip="价格表导出文件页眉."
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:TextBox runat="server" ID="txtHeader" CssClass="adminInput" Width="100%" />
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblBody" Text="导出文件正文:" ToolTip="价格表导出文件正文."
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <nopCommerce:SimpleTextBox runat="server" ID="txtBody" CssClass="adminInput" Width="100%"
                            ErrorMessage="导出文件正文是必须的" />
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblFooter" Text="导出文件的页脚:" ToolTip="价格表导出文件页脚."
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:TextBox runat="server" ID="txtFooter" CssClass="adminInput" Width="100%" />
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblExportMode" Text="导出模式:" ToolTip="价格表导出模式."
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:DropDownList ID="ddlExportMode" CssClass="adminInput" runat="server" AutoPostBack="true"
                            OnSelectedIndexChanged="ddlExportMode_SelectedIndexChanged" />
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblExportType" Text="导出类型:" ToolTip="价格表导出类型."
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:DropDownList ID="ddlExportType" CssClass="adminInput" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblAffiliate" Text="联暑营销:" ToolTip="相关的联暑营销."
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:DropDownList ID="ddlAffiliate" CssClass="adminInput" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblFormatLocalization" Text="格式本地化:"
                            ToolTip="价格表格式本地化." ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:DropDownList ID="ddlFormatLocalization" CssClass="adminInput" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblCacheTime" Text="缓存时间:" ToolTip="价格表缓存时间."
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <nopCommerce:NumericTextBox runat="server" ID="txtCacheTime" CssClass="adminInput"
                            MinimumValue="0" MaximumValue="64000" Value="0" RangeErrorMessage="值必须在 0 到 64000 之间"
                            RequiredErrorMessage="缓存时间是必须的" />
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblDescription" Text="描述:" ToolTip="价格表描述."
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:TextBox ID="txtDescription" runat="server" CssClass="adminInput" Width="99%"
                            TextMode="MultiLine" Rows="5" />
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblAdminNotes" Text="管理员说明:" ToolTip="关于该价格表的管理员说明"
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:TextBox runat="server" ID="txtAdminNotes" CssClass="adminInput" Width="99%"
                            TextMode="MultiLine" Rows="5" />
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblOverride" Text="覆盖价格调整:" ToolTip="价格表覆盖价格调整。."
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:CheckBox ID="chkOverrideIndivAdjustment" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblPriceAdjustmentType" Text="价格调整类型:"
                            ToolTip="价格调整类型" ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <asp:DropDownList ID="ddlPriceAdjustmentType" runat="server" CssClass="adminInput" />
                    </td>
                </tr>
                <tr>
                    <td class="adminTitle">
                        <nopCommerce:ToolTipLabel runat="server" ID="lblPriceAdjustment" Text="价格调整:" ToolTip="要调整的价格"
                            ToolTipImage="~/Administration/Common/ico-help.gif" />
                    </td>
                    <td class="adminData">
                        <nopCommerce:DecimalTextBox ID="txtPriceAdjustment" runat="server" CssClass="adminInput"
                            MinimumValue="0" MaximumValue="999999" Value="0" RequiredErrorMessage="价格调整是必须的"
                            RangeErrorMessage="值必须在 0 到 999999 之间" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </ajaxToolkit:TabPanel>
    <ajaxToolkit:TabPanel runat="server" ID="pnlProductVariants" HeaderText="产品变体">
        <ContentTemplate>
            <asp:GridView ID="gvProductVariants" runat="server" OnRowDataBound="gvProductVariants_RowDataBound"
                AutoGenerateColumns="false">
                <Columns>
                    <asp:TemplateField HeaderText="产品变体">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSelected" runat="server" />
                            <asp:Label ID="lblFullProductName" runat="server" Text='<%# Eval("FullProductName") %>' />
                            <asp:HiddenField ID="hfProductVariantID" runat="server" Value='<%# Eval("ProductVariantID") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="价格调整类型">
                        <ItemTemplate>
                            <asp:DropDownList ID="ddlPriceAdjustmentType" runat="server" CssClass="adminInput" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="价格调整">
                        <ItemTemplate>
                            <nopCommerce:DecimalTextBox ID="txtPriceAdjustment" runat="server" CssClass="adminInput"
                                Value="0" MinimumValue="0" MaximumValue="999999" RequiredErrorMessage="Price adjustment is required"
                                RangeErrorMessage="值必须在 0 到 999999 之间" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    没有产品变体
                </EmptyDataTemplate>
            </asp:GridView>
        </ContentTemplate>
    </ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>